]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
gdm: Skip locked users
authorAdel Gadllah <adel.gadllah@gmail.com>
Mon, 9 Apr 2012 16:43:44 +0000 (18:43 +0200)
committerAdel Gadllah <adel.gadllah@gmail.com>
Mon, 9 Apr 2012 17:01:20 +0000 (19:01 +0200)
Don't show locked (disabled) users in the user list. Those are either
"system" users with a shell or users disabled in the control-center.

https://bugzilla.gnome.org/show_bug.cgi?id=673784

js/gdm/loginDialog.js

index 6d4ae2bc4d0e963bb9aedcb8264ec06ce411e9d3..c00c21442f57036f49c75f8673155c493675d071 100644 (file)
@@ -488,6 +488,9 @@ const UserList = new Lang.Class({
         if (user.is_system_account())
             return;
 
+        if (user.locked)
+           return;
+
         let userName = user.get_user_name();
 
         if (!userName)